<include file="Common:layout" />
<body style="background-color: #FFF; overflow: auto;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>邮件设置</h3>
                <h5>网站邮件发送选项设置</h5>
            </div>
        </div>
    </div>
    <!-- 操作说明 -->
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span id="explanationZoom" title="收起提示"></span> </div>
        <ul>
            <li>系统平台全局设置,包括基础设置、购物、短信、邮件、水印和分销等相关模块。</li>
        </ul>
    </div>
    <form method="post" id="handlepost" action="{:U('System/smtp')}" enctype="multipart/form-data" name="form1">
        <input type="hidden" name="form_submit" value="ok" />
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label for="store_name">邮箱</label>
                </dt>
                <dd class="opt">
                    <input id="store_name" name="from_email" value="{$configs.from_email}" class="input-txt" type="text" />
                    <p class="notic">绑定邮箱</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="store_title">SMTP服务器</label>
                </dt>
                <dd class="opt">
                    <input id="store_title" name="smtp" value="{$configs.smtp}" class="input-txt" type="text" />
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="store_desc">SMTP端口</label>
                </dt>
                <dd class="opt">
                    <input id="store_desc" name="port" value="{$configs.port}" class="input-txt" type="text" />
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>登录名</label>
                </dt>
                <dd class="opt">
                    <input id="loginname" name="loginname" value="{$configs.loginname}" class="input-txt" type="text" />
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>密码</label>
                </dt>
                <dd class="opt">
                    <input name="password" value="{$configs.password}" class="input-txt" type="text">
                    <span class="err"></span>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>SSL</label>
                </dt>
                <dd class="opt">
                    <select name="ssl">
                        <option value="1" <if condition="$configs['ssl'] eq 1">selected</if>>开启</option>
                        <option value="2" <if condition="$configs['ssl'] eq 2">selected</if>>关闭</option>
                    </select>
                </dd>
            </dl>
            <div class="bot">
                <input type="hidden" name="inc_type" value="{$inc_type}">
                <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="document.form1.submit()">保存</a>
            </div>
        </div>
    </form>
</div>
<div id="goTop"> <a href="JavaScript:void(0);" id="btntop"><i class="fa fa-angle-up"></i></a><a href="JavaScript:void(0);" id="btnbottom"><i class="fa fa-angle-down"></i></a></div>
</body>
<script type="text/javascript">
    function img_call_back(fileurl_tmp)
    {
        $("#store_logo").val(fileurl_tmp);
        $("#img_a").attr('href', fileurl_tmp);
        $("#img_i").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+">',this,{tips: [1, '#fff']});");
    }
</script>
</html>